<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>权限添加--博客后台管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
</head>
<body class="childrenBody">
	<form class="layui-form">
		<div class="layui-form-item">
			<label class="layui-form-label">权限名称</label>
			<div class="layui-input-block">
				<input type="text"  name="title" class="layui-input" lay-verify="required" lay-verify="required" placeholder="请输入权限名称">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">所属父权限</label>
			<div class="layui-input-inline">
				<div class="layui-unselect layui-form-select downpanel">
					<div class="layui-select-title">
						<span class="layui-input layui-unselect" id="treeclass">--请选择--</span>
						<input type="hidden" id="parent.id" value="0" name="parent.id" >
						<i class="layui-edge"></i>
					</div>
					<dl class="layui-anim layui-anim-upbit">
						<dd>
							<ul id="authorTree"></ul>
						</dd>
					</dl>
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">权限类别</label>
			<div class="layui-input-block">
				<select name="type" lay-verify="required">
					<option value="0">所有人开放</option>
					<option value="1">菜单权限</option>
					<option value="2">按钮权限</option>
				</select>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">权限地址</label>
			<div class="layui-input-block">
				<input type="text"  name="url" class="layui-input" value=" " placeholder="请输入权限名称">
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="add">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		</div>
	</form>
	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script type="text/javascript" src="authorAdd.js"></script>
</body>
</html>